/*
 * ECARX Technology Limited is the owner of the copyright and the trade secret of this software.
 * Without permission, no one has the right to obtain, disclose or use this software in any way.
 */

package com.ecarx.systemui.plugin.model.wifi;

import com.ecarx.systemui.plugin.controller.WifiController;

import java.util.List;

public interface IWifiApi {

    WifiController.WifiState getWifiState();

    void openWifi(IWifiResult result);

    void closeWifi(IWifiResult result);

    List<WifiItemBean> getConnectedInfoList();

    List<WifiItemBean> getScanInfoList();

    void connect(WifiItemBean bean, IWifiResult result);

    void disconnect(WifiItemBean bean, IWifiResult result);

    void forget(WifiItemBean bean, IWifiResult result);

    WifiItemBean connected();

    interface IWifiResult {

        void onSuccess(String tag);

        void onError(String msg);
    }
}
